﻿using IceDog.MDIBasic.SubForm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace IceDog.MDIBasic
{
    public partial class FormMain : Form
    {
        private int _counter;
        public FormMain()
        {
            InitializeComponent();
            _counter = 0;
            new FormProgressBar(this, _counter++).Show();
        }

        private void ToolStripMenuItemSubWindow1_Click(object sender, EventArgs e)
        {
            new FormProgressBar(this,_counter++).Show();
        }

        private void ToolStripMenuItemQuit_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.Cascade);
        }
        
        private void TileVToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void ArrangeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.ArrangeIcons);
        }
    }
}
